package com.biz.primus.ms.order.feign;

import com.biz.primus.model.depot.vo.DepotDeliverPriceRespVo;
import com.biz.primus.ms.order.degraded.DegradedDepotDeliverPriceFeignClient;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 门店物流起送价格
 *
 * @author Tiger Feng
 * @date 2017年11月11日
 */
@FeignClient(qualifier = "advFeignClient", name = "service-depot", fallback = DegradedDepotDeliverPriceFeignClient.class)
public interface DepotDeliverPriceFeignClient {

    /**
     * 根据门店编码获取门店起送价配置详情(Redis)
     * @param depotCode
     * @return
     */
    @GetMapping("soa/depotDeliverPriceService/getDepotDeliverPriceFRdb")
    DepotDeliverPriceRespVo getDepotDeliverPriceFRdb( @RequestParam("depotCode") String depotCode);
}
